/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sessionbean;

import java.sql.Date;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Thien Nguyen
 */
@Remote
public interface UsersSessionBeanRemote {

    boolean checkLogin(String username, String password);

    boolean checkRole(String username);

    List loadUser();

    List getUser(String name);

    boolean addUser(String username, String password, java.util.Date createdate, String email, boolean role, float upload);

    boolean deleteUser(String username);

    boolean saveUser(String username, String password,String email, boolean role);

    boolean checkAvailableUser(String username);

    boolean changePassword(String username, String password);

    boolean checkUserPassword(String username, String password);
    
}
